import { lazy } from "react";
import { createBrowserRouter } from "react-router-dom";
import App from "../App";

const Home1 = lazy(() => import('../page/home1/index')) //开始页?
const Home2 = lazy(() => import('../page/home2/index')) //引导?
const Home3 = lazy(() => import('../page/home3/index')) //首页
const Login = lazy(() => import('../page/login/index')) //登录?
const Zc = lazy(() => import('../page/zc/index')) //注册?
const Wjmm = lazy(() => import('../page/wjmm/index')) //忘记密码?
const Newpassword = lazy(() => import('../page/newpassword/index')) //新密码页
const Syxq = lazy(() => import('../page/syxq/index')) //身份信息?
const Sp = lazy(() => import('../page/sp/index')) //视频
const Ss = lazy(() => import('../page/ss/index')) //搜索
const Byqxq = lazy(() => import('../page/byqxq/index')) //病友圈详?
const Ks = lazy(() => import('../page/ks/index')) //科室
const Byq = lazy(() => import('../page/byq/index')) //病友?
const My = lazy(() => import('../page/my/index')) //我的
const Zsk = lazy(() => import('../page/zsk/index')) //知识?
const Bzxq = lazy(() => import('../page/bzxq/index')) //病症详情
const Ypxq = lazy(() => import('../page/ypxq/index')) //药品详情
const Ysxq = lazy(() => import('../page/ysxq/index')) //医生详情
const Pllb = lazy(() => import('../page/pllb/index')) //评论列表
const Fbbyq = lazy(() => import('../page/fbbyq/index')) //发布病友?
const Myqb = lazy(() => import('../page/my-qb/index')) //我的钱包
const Byqss = lazy(() => import('../page/byqss/index')) //病友圈搜?
const Shezhi = lazy(() => import('../page/shezhi/index')) //设置
const Grsz = lazy(() => import('../page/grsz/index')) //个人设置
const Yhk = lazy(() => import('../page/yhk/index')) //银行?
const Smrz = lazy(() => import('../page/smrz/index')) //实名认证
const Caidan = lazy(() => import('../page/caidan/index')) //菜单中心
const Yytz = lazy(() => import('../page/yytz/index')) //预约提醒
const Yqlb = lazy(() => import('../page/yqlb/index')) //院区列表
const Kslb = lazy(() => import('../page/kslb/index')) //科室列表
const KslbBy = lazy(() => import('../page/kslb/by')) //科室列表
const KslbTj = lazy(() => import('../page/kslb/tj')) //科室列表
// const Znkf = lazy(() => import('../page/znkf/index')) //智能客服
const Yslb = lazy(() => import('../page/yslb/index')) //医生列表
const Mzbg = lazy(() => import('../page/mzbg/index')) //门诊报告
const Ailt = lazy(() => import('../page/ailt/index')) //智能客服
const Jcbg = lazy(() => import('../page/mzbg/jcbg')) //检查报?
const Jybg = lazy(() => import('../page/mzbg/jybg')) //检验报?
const Hzcx = lazy(() => import('../page/hzcx/index')) //候诊查询
const Hzxq = lazy(() => import('../page/hzcx/hzxq')) //候诊详情
const Zzkd = lazy(() => import('../page/zzkd/index')) //自助开?
const Yylb = lazy(() => import('../page/zzkd/yylb')) //医院列表
const Kdxq = lazy(() => import('../page/zzkd/kdxq')) //开单详?
const Kdjl = lazy(() => import('../page/zzkd/kdjl')) //开单记录
const Kdqr = lazy(() => import('../page/zzkd/kdqr')) //开单确认
const Yjyy = lazy(() => import('../page/yjyy/index')) //医技预约
const Yqdlb = lazy(() => import('../page/yjyy/yqdlb')) //院区列表
const Yuyue = lazy(() => import('../page/yjyy/yuyue')) //医技预约
const Yspb = lazy(() => import('../page/yspb/index')) //医生排班
const Ryqr = lazy(() => import('../page/ryqr/index')) //入院确认
const Zxun = lazy(() => import('../page/zxun/index')) //咨询
const Rydj = lazy(() => import('../page/ryqr/rydj')) //入院登记
const Rysj = lazy(() => import('../page/ryqr/rysj')) //入院审核
const Zyyj = lazy(() => import('../page/zyyj/index')) //住院预缴
const Czjl = lazy(() => import('../page/zyyj/czjl')) //充值记录
const routers = createBrowserRouter([
    {
        path: '/',
        element: <App />,
        children: [
            { index: true, element: <Home3 /> },
            {
                path: '/home3',
                element: <Home3 />
            },
            {
                path: '/sp',
                element: <Sp />
            },
            {
                path: '/byq',
                element: <Byq />
            },
            {
                path: '/byqxq/:id',
                element: <Byqxq />
            }
        ]
    },
    {
        path: '/home2',
        element: <Home2 />
    },
    {
        path: '/login',
        element: <Login />
    },
    {
        path: '/zc',
        element: <Zc />
    },
    {
        path: '/home1',
        element: <Home1 />
    },
    {
        path: '/wjmm',
        element: <Wjmm />
    },
    {
        path: '/newpassword',
        element: <Newpassword />
    },
    {
        path: '/syxq/:id',
        element: <Syxq />
    },
    {
        path: '/ss',
        element: <Ss />
    },
    {
        path: '/ks',
        element: <Ks />
    },
    {
        path: '/my',
        element: <My />
    },
    {
        path: '/zsk',
        element: <Zsk />
    },
    {
        path: '/bzxq/:id',
        element: <Bzxq />
    },
    {
        path: '/ypxq/:id',
        element: <Ypxq />
    },
    {
        path: '/ysxq/:id',
        element: <Ysxq />,
    },
    {
        path: '/pllb/:id',
        element: <Pllb />,
    },
    {
        path: '/fbbyq',
        element: <Fbbyq />,
    },
    {
        path: '/myqb',
        element: <Myqb />,
    },
    {
        path: '/byqss',
        element: <Byqss />,
    },
    {
        path: '/shezhi',
        element: <Shezhi />,
    },
    {
        path: '/grsz',
        element: <Grsz />,
    },
    {
        path: '/yhk',
        element: <Yhk />,
    },
    {
        path: '/smrz',
        element: <Smrz />,
    },
    {
        path: '/caidan',
        element: <Caidan />,
    },
    {
        path: '/yytz',
        element: <Yytz />,
    },
    {
        path: '/yqlb',
        element: <Yqlb />,
    },
    {
        path: '/kslb',
        element: <Kslb />,
    },
    {
        path: '/kslb/by',
        element: <KslbBy />,
    },
    {
        path: '/kslb/tj',
        element: <KslbTj />,
    },
    // {
    //     path:'/znkf',
    //     element:<Znkf />,
    // },
    {
        path: '/yslb',
        element: <Yslb />,
    },
    {
        path: '/mzbg',
        element: <Mzbg />,
    },
    {
        path: '/ailt',
        element: <Ailt />,
    },
    {
        path: '/jcbg',
        element: <Jcbg />,
    },
    {
        path: '/jybg',
        element: <Jybg />,
    },
    {
        path: '/hzcx',
        element: <Hzcx />,
    },
    {
        path: '/hzxq',
        element: <Hzxq />,
    },
    {
        path: '/zzkd',
        element: <Zzkd />,
    },
    {
        path: '/yylb',
        element: <Yylb />,
    },
    {
        path: '/kdxq',
        element: <Kdxq />,
    },
    {
        path: '/kdjl',
        element: <Kdjl />,
    },
    {
        path: '/kdqr',
        element: <Kdqr />,
    },
    {
        path: '/yjyy',
        element: <Yjyy />,
    },
    {
        path: '/yqdlb',
        element: <Yqdlb />,
    },
    {
        path: '/yuyue',
        element: <Yuyue />,
    },
    {
        path: '/yspb',
        element: <Yspb />,
    },
    {
        path: '/ryqr',
        element: <Ryqr />,
    },
    {
        path: '/zxun',
        element: <Zxun />,
    },
    {
        path: '/rydj',
        element: <Rydj />,
    },
    {
        path: '/rysj',
        element: <Rysj />,
    },
    {
        path: '/zyyj',
        element: <Zyyj />,
    },
    {
        path: '/czjl',
        element: <Czjl />,
    },
])

export default routers